* { margin: 0; 
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }
body{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    background-color: #bfd3de ;
}
.main{
    position: relative;
    display: flex;
    width: 1200px;
    height: 80vh;
}
/*侧栏*/
.partner1{
    position: absolute;
    right: calc(87.5% - 50px); 
    top: 10%;
    background-color: #647c93;
    border-radius: 15px 0 0 15px;
    height:25vh ;
    width: 50px;
    cursor: pointer;
    box-shadow: 2px 5px 20px rgba(0,0,0,0.15);
    transition: width 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 10px;
}
.partner1:hover{
    width: 150px;
}
.name {
    color:#d9e8f0 ;
    display: flex;
    align-items: left;
    margin: 10px 0;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
    }
.partner1:hover .name {
    opacity: 1; 
}

.partner2{
    position: absolute;
    right: calc(87.5% - 50px); 
    top: 20%;
    background-color: #425971;
    border-radius: 15px 0 0 15px;
    height:25vh ;
    width: 50px;
    cursor: pointer;
    box-shadow: 2px 5px 20px rgba(0,0,0,0.15);
    transition: width 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 10px;
}
.partner2:hover{
    width: 150px;
}
.name {
    color:#d9e8f0 ;
    display: flex;
    align-items: left;
    margin: 10px 0;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
    }
.partner2:hover .name {
    opacity: 1; 
}
/*侧栏结束*/
.chat-container{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display:flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #d9e8f0;
    border-radius: 15px;
    max-width: 1200px;  
    min-width: 800px;
    height: 80vh;           
    max-height: 700px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}/*聊天页面整体*/
.chat-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:50px;
    background-color: #55789b ;
    height: 60px;
}/*头部*/
.logo-icon{
    position: relative;
    font-size: 34px;
    color:#d9e8f0 ;
    left: 25px;
    cursor: pointer;
}/*软件logo*/
.logo-icon:hover{
    color: #ff7373;
    transform: scale(1.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: width 0.3s ease;
}/*logo变色*/

.search-container{
    display: flex;
    gap:50px;
    margin-left: 20px;
}/*搜索框*/
.search-input{
    width: 200px;
    height: 30px;
    border-radius: 20px;
    border: none;
    padding-left: 10px;
    font-size: 14px;
    color: #333;
    outline: none;
}
.search-icon{
    position: relative;
    top: 4px;
    font-size: 25px;
    color:#d9e8f0;
    cursor: pointer;
}/*搜索图标*/
.search-icon:hover{
    transform: scale(1.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.head-right{
    position: relative;
    display: flex;
    font-size: 24px;
    color:#d9e8f0 ;
    right: 20px;
    cursor: pointer;
    gap:6px;
}
.head-right i {
    width: 30px; /* 固定宽度 */
    height: 30px; /* 固定高度 */
    display: flex; /* 图标居中 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/*搜索图标结束*/
/*聊天界面*/
.chat-box{
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow:;
}
.item{
    margin-bottom: 30px;
}
.system{   
    width: 150px;
    height: 30px;
    background-color: #8095a928;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    padding: 2px 4px 2px 4px;
    text-align: center;
    color: #6b6b6b;
}
.message-in{
    display: flex;
    margin-left: 15px;
    margin-right: auto;
}
.profile-icon{
    font-size: 40px;
    color: #425971;
}
.chat-bubble-left{
    min-height:38px ;
    background-color: #ffffff98;
    padding: 8px 20px;
    border-radius: 0 15px 15px;
    margin-left: 15px;
    margin-top: 10px;
}
.message-out{
    margin-left: auto;
    margin-right: 15px;
}
.chat-bubble-right{
    min-height:38px ;
    background-color: #55789b;
    padding: 8px 20px;
    border-radius: 15px 0 15px 15px;
    margin-right: 10px;
}
/*聊天界面结束*/
/*输入界面*/
.chat-input-box{
    display: flex;
    position: sticky;
    width: 100%;
    height: 10%;
    background-color:#55789b;
    justify-content: center;
    align-items: center;
}
.smile-icon{
    font-size: 34px;
    color:#d9e8f0 ;
    cursor: pointer;
    margin-left: 15px;

}
.chat-input{
    resize: none;
    flex: 1;
    border-radius: 15px;
    margin: 10px;
    padding: 7px;
    padding-left: 15px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0.3, 0.3);
}
.chat-input::placeholder{
    font-size: 16px;
}
.chat-button{
    border-radius: 15px;
    width: 60px;
    height: 45px;
    margin-right: 15px;
    color: #767676;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    font-family: 幼圆;
    font-weight: bold;
}